package com.test.spring.demo3;

import com.test.spring.demo2.B;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");

        applicationContext.getBean(User.class);

        User user=applicationContext.getBean(User.class);

        user.print();


    }
}
